﻿CREATE TABLE [dbo].[Issue] (
    [IssueId]     INT           IDENTITY (1, 1) NOT NULL,
    [Description] VARCHAR (MAX) NULL,
    [TargetId]    INT           NULL,
    [IssueTypeId] INT           NULL,
    [Fixed] BIT NULL DEFAULT 0, 
    CONSTRAINT [PK_Issue] PRIMARY KEY CLUSTERED ([IssueId] ASC),
    CONSTRAINT [FK_Issue_IssueType] FOREIGN KEY ([IssueTypeId]) REFERENCES [dbo].[IssueType] ([IssueTypeId])
);

